package logParser;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * @projectName: endurance_test
 * @className: LabelTask
 * @description:
 * @author: JLONG
 * @date: 2024/10/25 10:11
 * @version: 1.0
 */
@Getter
@Setter
public class LabelTask {

    private final String labelID;
    private final List<TaskData> taskDataList;
    public LabelTask(String labelID) {
        this.labelID = labelID;
        this.taskDataList = new ArrayList<>();
        this.taskDataList.add(new TaskData("IMAGE_UPDATE"));    //0
        this.taskDataList.add(new TaskData("FLASHING"));    //1
        this.taskDataList.add(new TaskData("MCU_SUPPLY_VOLTAGE_SENSOR"));   //2
        this.taskDataList.add(new TaskData("BATTERY_RESISTANCE_SENSOR"));   //3
        this.taskDataList.add(new TaskData("TEMPERATURE_SENSOR"));  //4
        this.taskDataList.add(new TaskData("FORCE_CHANNEL_SCAN"));  //5
        this.taskDataList.add(new TaskData("TOTAL_DISPLAY_UPDATES"));   //6
        this.taskDataList.add(new TaskData("BROWNOUT_RESETS")); //7
        this.taskDataList.add(new TaskData("SCANNED_CHANNELS"));    //8
        this.taskDataList.add(new TaskData("RESYNCS")); //9
//        this.taskDataList.add(new TaskData("RECEIVED_DATA_PACKETS"));   //10
    }

    public void printInfo() {
        System.out.println("LabelID: " + this.labelID);
        for (TaskData taskData : this.taskDataList) {
            System.out.println("------" + taskData.toString());
        }
    }
}
